package homework;

public class ExtendsTest3 {
    public static void main(String[] args) {


        Student3 zs = new Student3("张三", 20, "河北", "jsd2507", "2233");
        zs.eat();
        zs.sleep();
        zs.sayhi();
        zs.study();
        Teacher3 ls=new Teacher3("李四",35,"山东","6000");
        ls.eat();
        ls.sleep();
        ls.sayhi();
        ls.teach();
        Doctor3 ww=new Doctor3("王五",45,"陕西","主任");
        ww.eat();
        ww.sleep();
        ww.sayhi();
        ww.cut();
    }
}
